<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">
             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
 
        <ul class="nav nav-tabs">
            <li><a href="{:U('Dushujie/updushujie')}">节目上报</a></li>
            <li class="active"><a href="{:U('Dushujie/viewDushujie')}">浏览节目单</a></li>
            <li><a href="{:U('Dushujie/sortDushujie','id='.$vo['id'])}" >节目排序</a><li>
        </ul>
	<!-- 标题栏 -->
    <div class="right_box">	
     <legend><span style="color:#CC4444">读书节节目查询</span></legend>
     <php>$endyear=date('Y')+1;</php>

      <form method='post' id="form" name="form"  action="" class="form-horizontal form-condensed">         
         <div class="form-group">
         <label class="col-md-2 text-right" for="year">选择年度节目</label>
         <div class="col-md-2">
          <select name="year" id="year" class="form-control" onChange="this.form.submit()">
              <for start="2015" end="$endyear">
                <option value="{$i}" <eq name="ayear" value= "$i" > selected </eq> >{$i}年</option>
              </for>                   
          </select>
          </div>
          </div>
      </form>


      
  
  <!-- 数据列表 -->
        <div class="data-table">
         <table class="table  table-striped table-bordered">
             <thead>
            <tr class="info">
                
                <th class="">序号</th>                                     
                <th class="">班级</th>
                <th class="">班主任</th>
                <th class="">节目名称</th>
                <th class="">节目时长</th>              
                <th class="">解说词</th>
                <th class="">更新时间</th>                
                <th class="">操  作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>
                    
                    <td>{$i} </td>
                    <td>{$vo.class}</td>
                    <td>{$vo.headteacher}</td>
                    <td>{$vo.title}
                     <div class="pull-right">
                    <notempty name="vo.url">
                     <a href="{:U('downloadmusic','id='.$vo['id'])}" title="{$vo.filename}">
                     <i class="icon icon-music"></i>下载音乐</a> 

                <else/>
               <a data-remote="{:U('upMusicfile','id='.$vo['id'])}" data-toggle="modal" data-title="上传音乐" data-moveable="true" data-icon="cloud-upload">
               <i class="icon icon-cloud-upload"></i>上传</a>
                </notempty></div>
                    </td>
                    <td>{$vo.show_time}</td>
                    <td> 
                     <notempty name="vo.abstract">
                     <a href="{:U('editDushujie','id='.$vo['id'])}" title="{$vo.abstract}">
                     <i class="icon icon-star"></i>下载</a> 

                <else/>
               <a href="{:U('editDushujie','id='.$vo['id'])}" title="{$vo.abstract}">
               <i class="icon icon-star-empty"></i>上传</a>
                </notempty>

                    </td>
                    <!-- <td>{$vo.abstract|msubstr=0,20,'utf-8',true}</td>   -->    
                    <td><span>{$vo.update_time|date='Y-m-d',###}</span></td>                        
                    <td>
                        <a data-remote="{:U('Dushujie/editDushujie','id='.$vo['id'])}" data-toggle="modal" data-icon="edit">编辑</a> | 
                        <a data-remote="{:U('Dushujie/upMusicfile','id='.$vo['id'])}" data-toggle="modal" data-icon="cloud-upload"
                        data-moveable="ture" >上传音乐</a> |                       
                        <a href="{:U('Dushujie/deleteDushujie?id='.$vo['id'])}" class="authorize">删除</a>
                        
                    </td>
                </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>
          </div>
        </div>          
     </div>   
</block>

